package com.jeeos.modules.system.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jeeos.modules.system.user.domain.SysUser;
import com.jeeos.modules.system.user.mapper.SysUserMapper;
import com.jeeos.modules.system.user.service.SysUserService;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {

    @Override
    public SysUser getUserByLoginName(String userName) {
        return baseMapper.getUserByLoginName(userName);
    }

    @Override
    public SysUser getUserByEmail(String email) {
        return baseMapper.getUserByEmail(email);
    }

    @Override
    public SysUser getUserByPhoneNumber(String phoneNumber) {
        return baseMapper.getUserByEmail(phoneNumber);
    }
}
